projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73ec04
)
(Fchars_in_region): Coerce markers.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 12 Jul 1998 03:15:53 +0000
(
03:15
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 12 Jul 1998 03:15:53 +0000
(
03:15
+0000)
src/charset.c
patch
|
blob
|
history
diff --git
a/src/charset.c
b/src/charset.c
index 10627b0970c9c9e6c7b55f3c09cccfde54e826e9..3fa9761b988667365635fa5043db963f69bce47e 100644
(file)
--- a/
src/charset.c
+++ b/
src/charset.c
@@
-1128,6
+1128,9
@@
DEFUN ("chars-in-region", Fchars_in_region, Schars_in_region, 2, 2, 0,
{
int from, to;
+ CHECK_NUMBER_COERCE_MARKER (beg, 0);
+ CHECK_NUMBER_COERCE_MARKER (end, 1);
+
from = min (XFASTINT (beg), XFASTINT (end));
to = max (XFASTINT (beg), XFASTINT (end));